package com.mars.admin.modules.post.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.admin.modules.post.entity.Post;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 帖子与用户信息DTO
 *
 * @author Mars
 * @version 1.0
 * @date 2025-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "帖子与用户信息")
public class PostWithUserDTO extends Post {

    /**
     * 发布用户昵称
     */
    @Schema(description = "发布用户昵称", example = "张三")
    private String userNickname;

    /**
     * 发布用户名
     */
    @Schema(description = "发布用户名", example = "zhangsan")
    private String username;

    /**
     * 发布用户头像
     */
    @Schema(description = "发布用户头像", example = "https://example.com/avatar.jpg")
    private String userAvatar;
}